nested vmx: fix I/O port bitmap indexing arithmetic
authorMatthew Daley <mattd@bugfuzz.com>
Tue, 3 Dec 2013 08:51:54 +0000 (09:51 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 3 Dec 2013 08:51:54 +0000 (09:51 +0100)
commitb80e4583501904297d2ff5b0f905e68f81f8f2c9
tree818d125829285364ca84e549b19fae9374db694b
parent98162f256ee33994a9881a720419dda9ad4c03a8
nested vmx: fix I/O port bitmap indexing arithmetic

The I/O port bitmap holds 8 ports per element, and hence the port number
used when indexing into it should be shifted right by 3 bits, not 4.

Signed-off-by: Matthew Daley <mattd@bugfuzz.com>
Reviewed-by: Yang Zhang <yang.z.zhang@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
xen/arch/x86/hvm/vmx/vvmx.c